//
//  JonSnowCore.swift
//  Pods
//
//  Created by eme on 2017/3/23.
//
//

import UIKit

let modularName = "SansaCore"

public class SansaCore{
    
    public static var sharedInstance:SansaCore{
        struct Static{
            static let instance:SansaCore = SansaCore()
        }
        return Static.instance
    }
    public static var bundle:Bundle?{
        get {
            guard let bundleURL = Bundle(for: MineVc.self).url(forResource: modularName, withExtension: "bundle")else {
                return nil
            }
            guard let bundle = Bundle(url:bundleURL) else {
                return nil
            }
            return bundle
        }
    }
    public static var storyboard:UIStoryboard{
        get{
            return UIStoryboard(name:modularName,bundle:SansaCore.bundle)
        }
    }
    public static var minevc:UIViewController{
        get {
            return SansaCore.storyboard.instantiateViewController(withIdentifier: "MineVc")
        }
    }
    public static var categoryVc:UIViewController{
        get{
            return SansaCore.storyboard.instantiateViewController(withIdentifier: "Category_Vc")
        }
    }
    public static var collectVc:UIViewController{
        get{
            return SansaCore.storyboard.instantiateViewController(withIdentifier: "Collect_Vc")
        }
    }
    
    init(){
//        guard let path = Bundle.main.path(forResource: "SansaCore", ofType: "plist") else {
//            return
//        }
//        guard let dict = NSDictionary(contentsOfFile: path) else {
//            return
//        }
    }

}
